home *** CD-ROM | disk | FTP | other *** search
/ Champak 138 / Volume 138 Aug 19 2011 - Damaged.iso / Games / shore-siege.swf / scripts / DefineSprite_345 / frame_1 / DoAction.as
Text File  |  2011-08-19  |  485b  |  21 lines

  1. function onEnterFrame()
  2. {
  3.    PercentLoaded = _root.getBytesLoaded() / _root.getBytesTotal() * 100;
  4.    _parent.pMask.loadText = "LOADED: " + Math.round(PercentLoaded) + "%";
  5.    if(PercentLoaded != 100)
  6.    {
  7.       _xscale = PercentLoaded;
  8.    }
  9.    else if(_alpha == 100)
  10.    {
  11.       _xscale = 100;
  12.       _root.playBut._x += 1000;
  13.       _alpha = 99;
  14.    }
  15.    else if(_parent.pMask._alpha > 0)
  16.    {
  17.       _parent.pMask._alpha -= 5;
  18.       _parent.pSand._alpha -= 8;
  19.    }
  20. }
  21.